import request from '@/utils/request'
import qs from 'qs'

export function saveUnform(data) {
  return request({
    url: '/manager/cap4unform/saveForm',
    method: 'post',
    data:qs.stringify(data)
  })
}

export function deleteFormById(id) {
  return request({
    url:  `/manager/cap4unform/deleteFormById/${id}`,
    method: 'delete'
  })
}

export function getFormById(id) {
  return request({
    url:  `/manager/cap4unform/getFormById/${id}`,
    method: 'get'
  })
}

export function pageForm(current,limit) {
  return request({
    url:  `/manager/cap4unform/pageForm/${current}/${limit}`,
    method: 'get'
  })
}



export function updateForm(data) {
  return request({
    url:  `/manager/cap4unform/updateForm`,
    method: 'post',
    data:qs.stringify(data)
  })
}

